<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回训练算法。</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.fann-get-train-stop-function.html">« fann_get_train_stop_function</a></li>
      <li style="float: right;"><a href="function.fann-init-weights.html">fann_init_weights »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.fann.html">Fann 函数</a></li>
    <li>返回训练算法。</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.fann-get-training-algorithm" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_get_training_algorithm</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_get_training_algorithm</span> &mdash; <span class="dc-title">返回训练算法。</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-get-training-algorithm-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fann_get_training_algorithm</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>): <span class="type">int</span></div>

  <p class="para rdfs-comment">
   返回训练算法。该训练算法是被 <span class="function"><a href="function.fann-train-on-data.html" class="function">fann_train_on_data()</a></span> 和相关函数使用的。
  </p>
  <p class="para">
   要注意的是这个算法在<span class="function"><a href="function.fann-cascadetrain-on-data.html" class="function">fann_cascadetrain_on_data()</a></span>函数中也是可以使用的, 尽管在层叠训练中只有<strong><code>FANN_TRAIN_RPROP</code></strong> 和 <strong><code>FANN_TRAIN_QUICKPROP</code></strong> 算法被允许使用。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-get-training-algorithm-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">ann</code></dt>

    <dd>

     <p class="para">神经网络 <span class="type"><span class="type 资源">资源</span></span>。</p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-get-training-algorithm-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功，返回<a href="fann.constants.html#constants.fann-train" class="link">训练算法</a> 常量, 错误则返回 <strong><code>false</code></strong> .
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-get-training-algorithm-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fann-set-training-algorithm.html" class="function" rel="rdfs-seeAlso">fann_set_training_algorithm()</a> - 设置训练算法。</span></li>
   </ul>
  </p>
 </div>



</div></div></div></body></html>